﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace CatalanFormula
{
    class Program
    {

        static public BigInteger factorial(int number)
        {
            BigInteger sum = 1;
            for (int i = 2; i <= number; i++)
            {
                sum *= i;
            }
            return sum;
        }
        static void Main(string[] args)
        {
            int N = 5;
            BigInteger nthNumber = (factorial(2 * N)) / (factorial(N + 1) * factorial(N));
        }
    }
}
